public class name {
	public static void main(String args[]){
		String s1="lai jin shan";
		int a;
		for(int i=1;i<s1.length();i++){
			a=s1.indexOf(' ');
			a++;
			if(s1.indexOf(' ',a)==s1.lastIndexOf(' ')){
				System.out.println(s1.substring(0,a));
				System.out.println(s1.substring(a,s1.lastIndexOf(' ')));
				System.out.println(s1.substring(s1.lastIndexOf(' ')+1,s1.length()));break;
			}
			if(s1.indexOf(' ',a)==-1){
				System.out.println(s1.substring(0,a));
				System.out.println(s1.substring(a,s1.length()));break;
			}
		}
	}
}
